home *** CD-ROM | disk | FTP | other *** search
- Path: cypher.3do.com!user
- From: tsw@3do.com (Tom Watson)
- Newsgroups: comp.lang.c
- Subject: Re: BEGINNER -- Borland tcwin 4.5 Tab Input Problem
- Date: Fri, 29 Mar 1996 17:05:53 -0800
- Organization: The 3DO Corporation
- Distribution: world
- Message-ID: <tsw-2903961705530001@cypher.3do.com>
- References: <4jem3o$8cg_002@nuts.nwu.edu>
- NNTP-Posting-Host: cypher.3do.com
-
- In article <4jem3o$8cg_002@nuts.nwu.edu>, llong@nwu.edu (Laurie Long) wrote:
-
- > Can someone explain why a user-entered tab is not recognized. I have
- included
- > a "case: '\t'" in my program. The program doesn't freeze if the tab key is
- > pressed. The user can go on entering any other character -- white space or
- > otherwise. Also, if I use '\t' in a printf control string, for example, it
- > works just fine. This seems to be an input problem.
- >
- >
-
- Some I/O packages which buffer input convert tabs into a corresponding
- number of spaces to the next tab stop. In others, you may need to have an
- "activation character" before you can get any input from the input stream
- (usually the <enter> key). Unfortunately, both of these topics have
- NOTHING to do with the C language, but are defined in the implementation.
- The answer you desire is most likely hidden in the manuals that came with
- your C programming system. In addition, the C FAQ list at
-
- "ftp://rtfm.mit.edu/pub/usenet-by-group/comp.lang.c/C-FAQ-list"
-
- Which might have the information you desire. In any event, I would
- attempt to print out the character received (possibly to a file) in a hex
- type format for each character that you pass thru the switch statement, it
- may just give you some clues.
-
- Good luck
-
- --
- Tom Watson
- tsw@3do.com (Home: tsw@johana.com)
-